#include <stdio.h>
#include <math.h>

int main(void)
{
    float x, result1, result2;

    printf("X is ");
    scanf("%f", &x);

    result1 = 3 * pow(x, 5) + 2 * pow(x, 4) - 5 * pow(x, 3) - pow(x, 2) + 7 * x - 6;
    printf("Result1 is %.2f\n", result1);

    result2 = ((((3 * x + 2) * x - 5) * x - 1) * x + 7) * x - 6;
    printf("result2 is %.2f", result2);

    return 0;
}
